import Vue from "vue";
import Vuex from 'vuex';
import home from './home/index';
import search from './search/index'
import detail from './detail/detail'
import shopcart from './shopcart/shopcart'
import register from './register/index'
import login from './login/index'
import trade from './trade/index'



Vue.use(Vuex);
//引入多个小仓库




export default new Vuex.Store({
    modules:{
        home,
        search,
        detail,
        shopcart,
        register,
        login,
        trade
        
        
    }

})